<script language="javascript" type="text/javascript" src="{URL_JS}popup/prototype.js"></script>

<script language="javascript" type="text/javascript" src="{URL_JS}popup/effects.js"></script>
<script language="javascript" type="text/javascript" src="{URL_JS}popup/dragdrop.js"></script>
<link rel="stylesheet" type="text/css" href="{URL_JS}popup/style.css">
<script language="javascript" type="text/javascript" src="{URL_JS}popup/popup.js"></script>


<!-- TinyMCE -->
<script type="text/javascript" src="{URL_JS}tiny_mce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		editor_selector : "mceEditor",
		
	plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		// Example content CSS (should be your site CSS)
		content_css : "css/content.css",


		// Replace values for the template plugin
		template_replace_values : {
			username : "aaaa",
			staffid : "1111"
		}
	});
</script>
<!-- /TinyMCE -->
<script language='JavaScript' type="text/javascript">
var count_otherMethodTrsCurrent = 1;// value innitialize
var product_time_auction = new Array(2,3,4,5,6,7);
<!--var product_icon_highlight = new Array('sc_attention_02.gif','sc_attention_03.gif','sc_attention_04.gif','sc_attention_05.gif','sc_attention_06.gif','sc_attention_07.gif','sc_attention_08.gif');-->
var product_icon_highlight = new Array("",'2','3','4','5','6','7','8');

var product_icon_highlight_text = new Array("選択","美品","非売品"," 限定品","保証書付","全巻セット","正規店購入","産地直送");
var product_time_auction_text = new Array("2","3","4","5","6","7");
var product_time_auction = new Array("2","3","4","5","6","7");
var product_set_limit_on_prices = new  Array('',1,2,3,4,5);
var product_set_limit_on_prices_value = new Array('選択',"1","2","3","4","5");
var product_auto_open_aution = new Array(1,2,3,4);
var product_auto_open_aution_text = new Array("0","1","2","3");
var product_time_auction_end_value = new Array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23);
var product_time_auction_end_text = new Array("0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23");
var product_size_after_packet = new Array("","〜60cm","〜70cm","〜80cm","〜100cm","〜110cm","〜120cm","〜140cm","〜150cm","〜160cm","〜170cm");
var product_size_after_packet_text = new Array("その他","~60 cm","~70 cm","~80 cm","~100 cm","~110 cm","~120 cm","~140 cm","~150 cm","~160 cm","~170 cm");
var product_weight_after_packet = new Array("","〜2kg","〜4kg","〜5kg","〜6kg","〜8kg","〜10kg","〜11kg","〜12kg","〜14kg","〜15kg","〜16kg","〜18kg","〜20kg","〜21kg","〜25kg","〜30kg","30kg 〜");
var product_weight_after_packet_text = new Array("その他","~2 kg","~4 kg","~5 kg","~6 kg","~8 kg","~10 kg","~11 kg","~12 kg","~14 kg","~15 kg","~16 kg","~18 kg","~20 kg","~21 kg","~25 kg","~30 kg","30 kg ~");
</script>

{FILE {temp_product_js}}
<script type="text/javascript">

function autoFillCombobox_2(control_id,array_text,array_value,selected_value)
	{
	
		var Num = 0;
		var combobox  = document.getElementById(control_id);
		var last 	  =  (array_value.length-1);
		while (Num < last ) {
		if(Num<10)
			combobox.options[combobox.options.length] = new Option("午前"+array_text[Num]+"時から午前"+array_text[Num+1]+"時",array_value[Num]);
		else {
		if(Num==10)
			combobox.options[combobox.options.length] = new Option("午前"+array_text[Num]+"時から午後"+array_text[Num+1]+"時（正午）",array_value[Num]);
			else 
			if(Num == last-1)
			combobox.options[combobox.options.length] = new Option("午後"+array_text[Num]+"時から午前"+array_text[Num+1]+"時",array_value[Num]);
			else 
				{
					if(Num==11)
					{
						combobox.options[combobox.options.length] = new Option("午後"+array_text[Num]+"時（正午）から午後"+array_text[Num+1]+"時",array_value[Num]);
					}
					else
					combobox.options[combobox.options.length] = new Option("午後"+array_text[Num]+"時から午後"+array_text[Num+1]+"時",array_value[Num]);
				}
			}
				Num++;
			}
			
		for(var i=0;i<combobox.length;i++)
		{
			if(combobox.options[i].value==selected_value)
			{
				combobox.options[i].selected=true;
			}
		}
		
	}   
function autoFillCombobox(control_id,array_text,array_value,selected_value)
	{
		var Num = 0;
		var combobox  = document.getElementById(control_id);
		while (Num < array_value.length ) {
		combobox.options[combobox.options.length] = new Option(array_text[Num],array_value[Num]);
				Num++;
			}
		for(var i=0;i<combobox.length;i++)
		{
			if(combobox.options[i].value==selected_value)
			{
				combobox.options[i].selected=true;
			}
		}
	}
function autoFillCombobox1x(control_id,array_text,array_value,selected_value)
	{
		var Num = 0;
		var combobox  = document.getElementById(control_id);
		while (Num < array_value.length ) {
		combobox.options[combobox.options.length] = new Option(array_value[Num],array_value[Num]);
				Num++;
			}
		for(var i=0;i<combobox.length;i++)
		{
			if(combobox.options[i].value==selected_value)
			{
				combobox.options[i].selected=true;
			}
		}
	}
function checkmaxchar(maxchar, msgerr)
{
var text = document.frmNewProduct.product_store.value;
var textnew;
textnew = "";
if(text.length > maxchar){
	for (i=0; i < maxchar; i++){
		textnew += text[i];	
	}
	document.frmNewProduct.product_store.value = textnew;
	alert(msgerr);
}
return true;
}

function checkmaxchar1(maxchar, msgerr)
{
var text = document.frmNewProduct.product_key1.value;
var textnew;
textnew = "";
if(text.length > maxchar){
	for (i=0; i < maxchar; i++){
		textnew += text[i];	
	}
	document.frmNewProduct.product_key1.value = textnew;
	alert(msgerr);
}
return true;
}
function checkmaxchar2(maxchar, msgerr)
{
var text = document.frmNewProduct.product_key2.value;
var textnew;
textnew = "";
if(text.length > maxchar){
	for (i=0; i < maxchar; i++){
		textnew += text[i];	
	}
	document.frmNewProduct.product_key2.value = textnew;
	alert(msgerr);
}
return true;
}
function checkmaxchar3(maxchar, msgerr)
{
var text = document.frmNewProduct.product_key3.value;
var textnew;
textnew = "";
if(text.length > maxchar){
	for (i=0; i < maxchar; i++){
		textnew += text[i];	
	}
	document.frmNewProduct.product_key3.value = textnew;
	alert(msgerr);
}
return true;
}

function checkmaxchar4(maxchar, msgerr)
{
var text = document.frmNewProduct.product_key4.value;
var textnew;
textnew = "";
if(text.length > maxchar){
	for (i=0; i < maxchar; i++){
		textnew += text[i];	
	}
	document.frmNewProduct.product_key4.value = textnew;
	alert(msgerr);
}
return true;
}

function checkmaxchar5(maxchar, msgerr)
{
var text = document.frmNewProduct.product_key5.value;
var textnew;
textnew = "";
if(text.length > maxchar){
	for (i=0; i < maxchar; i++){
		textnew += text[i];	
	}
	document.frmNewProduct.product_key5.value = textnew;
	alert(msgerr);
}
return true;
}

function checkmaxchar6(maxchar, msgerr)
{
var text = document.frmNewProduct.product_ability_to_return_product_comment.value;
var textnew;
textnew = "";
if(text.length > maxchar){
	for (i=0; i < maxchar; i++){
		textnew += text[i];	
	}
	document.frmNewProduct.product_ability_to_return_product_comment.value = textnew;
	alert(msgerr);
}
return true;
}
function checkmaxchar7(maxchar, msgerr)
{
var text = document.frmNewProduct.product_product_status_comment.value;
var textnew;
textnew = "";
if(text.length > maxchar){
	for (i=0; i < maxchar; i++){
		textnew += text[i];	
	}
	document.frmNewProduct.product_product_status_comment.value = textnew;
	alert(msgerr);
}
return true;
}

function changeShopOwner(){
    redir("?sMod=product_index&sAction=defaul&user_id=" + document.getElementById("shop_owner_id").value);
}
</script>
<div class="top_list_page"></div>
<!-- BEGIN: shop_owner_role-->
{MANAGER.shop_owner} :
<select name="shop_owner_id" id="shop_owner_id" onchange="changeShopOwner()">
    <option value="0">{MANAGER.admin}</option>
    <!-- BEGIN: shop_owner-->
    <option value="{admin.admin_id}" {admin.selected} >{admin.admin_fullname} - {admin.admin_username}</option>
    <!-- END: shop_owner-->
</select>
<!-- END: shop_owner_role-->
<form name="frmNewProduct" id="frmNewProduct" action="" method="post" enctype="multipart/form-data" >
  <input type="hidden" name="sAction" id="sAction" value="{do_edit_or_add_new}" />
  <input type="hidden" name="pUser" id="sAction" value="{pUser}" />
  <input type="hidden" name="product_description_normal" id="product_description_normal" value="{product_description_normal}"  />
  <div style="display:none;visibility:hidden;">
    <table width="100%" border="1" cellspacing="" cellpadding="0" class="maintable">
      <tr>
        <td class="tdLeft">{PRODUCT.Code_management}</td>
        <td><!-- BEGIN:div_pro_id_search -->
          <div style="margin-bottom:7px;">
            <input name="product_id_search" id="product_id_search" type="text" size="30" maxlength="30" value="{product_id}" onKeyPress="javascript: check_enter_key_ajaxInfor(event,this); " onBlur="javascript: none_error('empty_prioduct_id'); " />
            {PRODUCT.Enter_product_id}<span style="color:#FF0000" id="empty_prioduct_id"></span> </div>
          <!-- END:div_pro_id_search -->
          <input name="product_id" id="product_id" type="text" size="20" maxlength="20" value="{product_id}" readonly="readonly" />
          <span> （残り20文字）</span><br>
          商品データ管理用の番号になります。20けたまで任意に入力できます。オークションページには反映されません</td>
      </tr>
      <tr>
        <td class="tdLeft"><strong>{PRODUCT.Category} ※</strong></td>
        <td><div class="LABEL_DIV" >カテゴリを選択してください</div>
          <div style="float:left; margin-left:10px;" id="path_category">{path_category}</div>
          <br/>
          <div style="float:left;">{PRODUCT.code_category}
            <input name="product_category_id" type="text" size="30" maxlength="30" value="{product_category_id}" readonly="readonly" />
          </div></td>
      </tr>
      <tr>
        <td class="tdLeft"><strong>{PRODUCT.Title} ※</strong></td>
        <td><input name="product_title" id="product_title" type="text" size="100" maxlength="30" value="{product_title}">
          <input name="product_id_a" id="product_id_a" type="text" size="10" maxlength="5" value="{product_id}" readonly="readonly" />
          <div class=""></div></td>
      </tr>
      <tr>
        <td class="tdLeft"><strong>{PRODUCT.product_description} ※</strong></td>
        <td><div style="float:left; width:100%">
            <!-- BEGIN:div_choose_template -->
            <input type="radio" name="product_template_id" value="{div_choose_template.id}" {div_choose_template.checked} onclick="change_template(this.value)"/>
            {div_choose_template.name}
            <!-- END:div_choose_template -->
          </div>
          <div style="float:left">
            <div class="LABEL_DIV">{PRODUCT.explanation}:</div>
            <textarea name="product_explanation" id="product_explanation" class="mceEditor" style="width:100%; height:350px;">
             <!-- BEGIN:div_template_ex -->
             {FILE {file_temp_ex}} 
             <!-- END:div_template_ex -->
             {product_explanation}</textarea>
          </div>
          <div style="float:left">
            <div class="LABEL_DIV" >{PRODUCT.size}
              <!-- BEGIN:PARRENT_ATTRIBUTE -->
              <input type="radio" name="product_attribute" value="{PARRENT_ATTRIBUTE.at_id}" {PARRENT_ATTRIBUTE.checked} onclick="change_size(this.value)">
              {PARRENT_ATTRIBUTE.at_name}
              <!-- END:PARRENT_ATTRIBUTE -->
            </div>
            <div id="div_product_size" style="float:left">
              <textarea name="product_size" id="product_size" class="mceEditor" style="width:100%; height:350px;">
             <!-- BEGIN:div_template_size -->
             {FILE {file_temp_size}} 
             <!-- END:div_template_size -->
             {product_size}</textarea>
            </div>
          </div>
          <div style="float:left">
            <div class="LABEL_DIV" >{PRODUCT.rank}
              <input type="radio" name="product_rank_name" value="damage" {div_rank_name.checked} onclick="change_rank(this.value);" />
              Damage
              <!-- BEGIN:div_rank_name -->
              <input type="radio" name="product_rank_name" value="{div_rank_name.value}" {div_rank_name.checked} onclick="change_rank(this.value);" />
              {div_rank_name.name}
              <!-- END:div_rank_name -->
            </div>
            <div class="LABEL_DIV" >Condition
              <!-- BEGIN:div_condition -->
              <input type="radio" name="product_condition" value="{div_condition.value}" {div_condition.checked} onclick="change_condition(this.value);" />
              {div_condition.name}
              <!-- END:div_condition -->
            </div>
            <textarea name="product_rank" id="product_rank" class="mceEditor" style="width:100%; height:350px;">{product_rank}<!-- BEGIN:div_template_rank -->
			{FILE {file_temp_rank}}
               <!-- END:div_template_rank -->
			 </textarea>
            <div id="div_rank_temp" style="display:none">{product_rank_temp}</div>
            <div id="div_rank_dagame_temp" style="display:none">
              <!-- BEGIN:div_template_rank_dagame -->
              {dagame_file}
              <!-- END:div_template_rank_dagame -->
            </div>
          </div>
          <div style="float:left">
            <div class="LABEL_DIV" >{PRODUCT.note}</div>
            <textarea name="product_note" id="product_note" class="mceEditor" style="width:100%; height:350px;">
            <!-- BEGIN:div_template_note -->
            {FILE {file_temp_note}}
            <!-- END:div_template_note -->
            {product_note}</textarea>
          </div></td>
      </tr>
      <Tr>
        <Td class="tdLeft"></Td>
        <td><input name="product_description_swich" type="radio" value="1" id="product_description_swich_1" onClick="javascript: change_tab('mobile_version_des_div_disable','mobile_version_des_div_enable');" {checked_product_description_swich_1} >
          {PRODUCT.note_mobile}<br>
          <input name="product_description_swich" type="radio" value="0" id="product_description_swich_0" onClick="javascript: change_tab('mobile_version_des_div_enable','mobile_version_des_div_disable');"  {checked_product_description_swich_0}>
          {PRODUCT.note_mobile_2}
          <div id = "mobile_version_des_div_enable">
            <textarea name="product_description_on_mobile" id="product_description_on_mobile" cols="50" rows="7" class="mceEditor">{product_description_on_mobile}</textarea>
          </div>
          <div id = "mobile_version_des_div_disable" style="display:none;background:#F1F1F1;">
            <div style="background:#F1F1F1;  margin-top:10px;" >
              <textarea name="product_description_on_mobile_unactive" id="product_description_on_mobile_unactive" cols="50" rows="7">{product_description_on_mobile_unactive}</textarea>
            </div>
          </div></td>
      </Tr>
      <tr>
        <td height="53" class="tdLeft"><span title="Giá khởi điểm *(tìm các giá thắng cuộc trong quá khứ )để đặt giá khởi điểm">{PRODUCT.product_prices_start}<strong>※</strong></span></td>
        <td><input name="product_prices_start" id="product_prices_start" type="text" size="20"  onkeypress="javascript: return numbersonly(event,this,20)" value="{product_prices_start}" />
          円 &nbsp;&nbsp;&nbsp;</td>
      </tr>
      
      <tr>
        <td class="tdLeft">入札個数制限<strong>※</strong></td>
        <td><select name="product_periods" id="product_periods" style="width:20px">
            <option value="" {product_periods_checked1}></option>
            <option value="1" {product_periods_checked1}>1</option>
            <option value="2" {product_periods_checked2}>2</option>
            <option value="3" {product_periods_checked3}>3</option>
            <option value="4" {product_periods_checked4}>4</option>
            <option value="5" {product_periods_checked5}>5</option>
          </select>
        </td>
      </tr>
      
      <tr>
        <td class="tdLeft">{PRODUCT.Shipping_Area}<strong>※</strong></td>
        <td><label>
          <select name="product_province_id" id="product_province_id" >
            <option value="">{PRODUCT.Select_province}</option>
            <!-- BEGIN:PROVINCE -->
            <option value="{PROVINCE.province_code}" {PROVINCE.checked_province_code} >{PROVINCE.province_name}</option>
            <!-- END:PROVINCE -->
          </select>
          </label>
          <label> {PRODUCT.select_city}:
          <input type="text" name="product_shipping_area" id="product_shipping_area" value="{product_shipping_area}"  />
          </label></td>
      </tr>
      <tr>
        <td class="tdLeft">{PRODUCT.who_bear}</td>
        <td><input type="radio" name="product_who_bear_the_CsOfTr" id="product_who_bear_the_CsOfTr_1" value="1"  {checked_product_who_bear_the_CsOfTr_1} >
          <label>{PRODUCT.Who_wins}</label>
          <br>
          <input type="radio" name="product_who_bear_the_CsOfTr" id="product_who_bear_the_CsOfTr_0" value="0" {checked_product_who_bear_the_CsOfTr_0} >
          <label>{PRODUCT.owner_auction}</label>
        </td>
      </tr>
      <tr>
        <td class="tdLeft">{PRODUCT.payment_before_after}<strong>※</strong></td>
        <td><input name="product_payment_of_goods_boa" type="radio" value="1" checked {checked_product_payment_of_goods_boa_1}>
          {PRODUCT.payment_before}<br>
          <input name="product_payment_of_goods_boa" type="radio" value="0" {checked_product_payment_of_goods_boa_0}>
          {PRODUCT.payment_after}</td>
      </tr>
      
      <tr>
        <td class="tdLeft">{PRODUCT.Product_Status}<strong>※</strong></td>
        <td><p>
            <label>
            <input type="radio" name="product_product_status" value="1" id="product_product_status_1" {product_product_status_SecondHand} >
            {PRODUCT.SecondHand}</label>
            <br>
            <label>
            <input type="radio" name="product_product_status" value="2" id="product_product_status_2" {product_product_status_New}>
            {PRODUCT.New}</label>
            <br>
            <label>
            <input type="radio" name="product_product_status" value="3" id="product_product_status_3" {product_product_status_Other}>
            {PRODUCT.Other}</label>
            <br>
            {PRODUCT.other_method_payment_comment}<br>
            <input name="product_product_status_comment1" type="text" size="50" maxlength="250" value="{product_product_status_comment}">
            ({PRODUCT.max15char}) </p></td>
      </tr>
      <tr>
        <td class="tdLeft">{PRODUCT.Ability}</td>
        <td><p>
            <label>
            <input type="radio"  name="product_ability_to_return_product" value="0" id="product_ability_to_return_product_0" {checked_ability_to_return_product_0}>
            {PRODUCT.cannot}</label>
            <br>
            <label>
            <input type="radio" name="product_ability_to_return_product" value="1" id="product_ability_to_return_product_1" {checked_ability_to_return_product_1}>
            {PRODUCT.can}</label>
            <br>
            {PRODUCT.Ability_comment} <br/>
            <input name="product_ability_to_return_product_comment1" type="text" value="{product_ability_to_return_product_comment}"size="50" maxlength="30">
            ({PRODUCT.max30char}) </p></td>
      </tr>
      <tr style="border-bottom: #CCCCCC solid 1px;">
        <td colspan="2" style="background:#F1F1F1; height:30px; "><input name="save_btt" type="button" value="{FORM.save}" onClick="javascript: {toobar_save}" />
          <a class="toolbar" href="{toobar_cancel}" title="cancel">
          <input name="cancel_btt" type="button" value="{FORM.cancel}" onClick='javascript: window.location.href = "{toobar_cancel}";' />
          </a> </td>
      </tr>
    </table>
    <div style="height:30px; float:left; position:relative">&nbsp;</div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="maintable">
      <tr>
        <td colspan="2" class="tdHeader" >{PRODUCT.Upload_photos}</td>
      </tr>
      <tr>
        <td class="tdLeft_2" >{PRODUCT.Upload_photos}</td>
        <td><!--
	  	<div class="LABEL_DIV" > 画像データ選択から画像を選択してください</div>
        <div style="text-align:center" >
          <input name="upload_images" type="button" value="{FORM.upload_images}" onClick="redirec_uploadImage();"/>
        </div>
		-->
          <div class="LABEL_DIV" >{PRODUCT.image_note}</div>
          <br/>
          <table width="100%" border="1" cellspacing="4" cellpadding="0"  style="border:#B8B8B8 solid 1px" class="maintable">
            <thead>
              <tr>
                <td>画像1</td>
                <td>画像2</td>
                <td>画像3</td>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td colspan="3"><div id="ELEMENT_TO_PRINT_IMAGE" >
                    <!-- BEGIN:CURRENT_IMAGE_PRODUCT -->
                    <div>
                      <!-- BEGIN:IMAGE_PRODUCT -->
                      <div style="float:left; position:relative; width:30%;padding:7px; margin:2px;"> {IMAGE_PRODUCT.pictures} <span>【任意】コメント （残り4.5文字）： </span> <br/>
                        <input name="product_pictures_comment_{IMAGE_PRODUCT.i}" type="text" size="33" value="{IMAGE_PRODUCT.pictures_comment}" />
                      </div>
                      <!-- END:IMAGE_PRODUCT -->
                    </div>
                    <!-- END:CURRENT_IMAGE_PRODUCT -->
                  </div></td>
              </tr>
              <tr>
                <td><input name="product_image_1" type="file" value=""  />
                  <input type="hidden" name="old_product_image_1" value="{old_product_image_1}">
                </td>
                <td><input name="product_image_2" type="file" value=""  />
                  <input type="hidden" name="old_product_image_2" value="{old_product_image_2}">
                </td>
                <td><input name="product_image_3" type="file" value=""  />
                  <input type="hidden" name="old_product_image_3" value="{old_product_image_3}">
                </td>
              </tr>
            </tbody>
          </table></td>
      </tr>
      <tr>
        <td colspan="2" style="background:#F1F1F1; height:30px; "><input name="save_btt" type="button" value="{FORM.save}" onClick="javascript: {toobar_save}" />
          <a class="toolbar" href="{toobar_cancel}" title="cancel">
          <input name="cancel_btt" type="button" value="{FORM.cancel}" onClick='javascript: window.location.href = "{toobar_cancel}";' />
          </a> </td>
      </tr>
    </table>
  </div>
  {update_ok}
  <table width="100%" border="1" cellspacing="" cellpadding="5" class="maintable">
    <tr>
      <td class="tdLeft_2">Key word</td>
      <td><div class="">
          <input type="radio" name="product_key_select" value="0" {checked_store0} />
          無し&nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="1" {checked_store1} />
          <input type="text" name="product_key1" value="{product_key1}" size="7" onkeyup="checkmaxchar1(2,'文字数がオーバーしています。')" onkeypress="checkmaxchar1(2, '文字数がオーバーしています。')" />
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="2" {checked_store2} />
          <input type="text" name="product_key2" value="{product_key2}" size="7" onkeyup="checkmaxchar2(2,'文字数がオーバーしています。')" onkeypress="checkmaxchar2(2, '文字数がオーバーしています。')" />
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="3" {checked_store3} />
          <input type="text" name="product_key3" value="{product_key3}" size="7" onkeyup="checkmaxchar3(2,'文字数がオーバーしています。')" onkeypress="checkmaxchar3(2, '文字数がオーバーしています。')" />
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="4" {checked_store4} />
          <input type="text" name="product_key4" value="{product_key4}" size="7" onkeyup="checkmaxchar4(2,'文字数がオーバーしています。')" onkeypress="checkmaxchar4(2, '文字数がオーバーしています。')" />
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="5" {checked_store5} />
          <input type="text" name="product_key5" value="{product_key5}" size="7" onkeyup="checkmaxchar5(2,'文字数がオーバーしています。')" onkeypress="checkmaxchar5(2, '文字数がオーバーしています。')" />
          &nbsp;&nbsp;&nbsp; </div></td>
    </tr>
    <tr>
      <td class="tdLeft_2">Shop name</td>
      <td><input name="product_store" id="product_store" type="text" size="7" maxlength="5" value="{product_store}" onkeyup="checkmaxchar(3,'文字数がオーバーしています。')" onkeypress="checkmaxchar(3, '文字数がオーバーしています。')"> </td>
    </tr>
    <tr>
      <td colspan="2" class="tdLeft" style="background:#F4F4F4">{PRODUCT.Transaction_option}</td>
    </tr>
    <tr>
     <td class="tdLeft">開始価格<strong>※</strong></td>
      <td><input type="text" name="product_price" id="product_price" size="10" maxlength="50" value="{product_price}">
       <br></td>
    </tr>
    <tr>
     <td class="tdLeft">{PRODUCT.Qty}<strong>※</strong></td>
      <td><input type="text" name="product_qty" id="product_qty" size="10" maxlength="2" onKeyPress="javascript: return numbersonly(event,this,2)" value="{product_qty}">
        個（1個～99個）<br></td>
    </tr>
    <tr>
      <td class="tdLeft_2">入札個数制限</td>
       <td><select name="product_set_limit_on_prices" id="product_set_limit_on_prices" style="width:50px;"></select>
    <script language="JavaScript" type="text/javascript" >
    autoFillCombobox("product_set_limit_on_prices",product_set_limit_on_prices_value,product_set_limit_on_prices,'{product_set_limit_on_prices}');
	</script>
  </td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Auction_period}<strong>※</strong></td>
      <td><select name="product_time_auction" id="product_time_auction"></select>
          <script language="javascript" type="text/javascript" >
    autoFillCombobox("product_time_auction", product_time_auction_text,product_time_auction,'{product_time_auction}');
	</script>
        </td>
    </tr>
     
    <tr>
      <td class="tdLeft">{PRODUCT.Time_auction_end}<strong>※</strong></td>
      <td><select name="product_time_auction_end" id="product_time_auction_end"></select>
          <script language="javascript" type="text/javascript" >
 	   autoFillCombobox("product_time_auction_end", product_time_auction_end_text,product_time_auction_end_value,'{product_time_auction_end}');
	</script>
        </td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Shipping_Area}<strong>※</strong></td>
      <td><label>
        <select name="product_province_id" id="product_province_id" >
          <option value="">{PRODUCT.Select_province}</option>
          <!-- BEGIN:PROVINCES -->
          <option value="{PROVINCE.province_code}" {PROVINCE.checked_province_code} >{PROVINCE.province_name}</option>
          <!-- END:PROVINCES -->
        </select>
        </label>
        <label> {PRODUCT.select_city}:
        <input type="text" name="product_shipping_area" id="product_shipping_area" value="{product_shipping_area}"  />
        </label></td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.who_bear}</td>
      <td><input type="radio" name="product_who_bear_the_CsOfTr" id="product_who_bear_the_CsOfTr_1" value="1"  {checked_product_who_bear_the_CsOfTr_1} >
        <label>{PRODUCT.Who_wins}</label>
        <br>
        <input type="radio" name="product_who_bear_the_CsOfTr" id="product_who_bear_the_CsOfTr_0" value="0" {checked_product_who_bear_the_CsOfTr_0} >
        <label>{PRODUCT.owner_auction}</label>      </td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.payment_before_after}<strong>※</strong></td>
      <td><input name="product_payment_of_goods_boa" type="radio" value="1" {checked_product_payment_of_goods_boa_1}>
        {PRODUCT.payment_before}<br>
        <input name="product_payment_of_goods_boa" type="radio" value="0" {checked_product_payment_of_goods_boa_0}>
        {PRODUCT.payment_after}</td>
    </tr>
    <tr>
      <tr>
        <td class="tdLeft">{PRODUCT.Payment_method}</td>
        <td><input name="product_payment_method" type="checkbox" value="1" onClick="show_hide_div_bank(this)" {checked_product_payment_method} >
          {PRODUCT.Bank_transfer}<br>
          <!-- <div style="color:#CCCCCC" id="bank_name_txt_div">{PRODUCT.enter_name_bank}</div>-->
          <div class="bank_name_div" style="display:{bank_name_div_display}" id ="bank_name_div">
            <!-- BEGIN: parent_div_product_bank-->
            <input type="hidden" id="now_div_blank_id" value="{now_div_blank_id}"/>
            <!-- BEGIN: div_product_bank-->
            <div style="display:{div_product_bank.display}" id="div_bank_{div_product_bank.num}">
              <input name="product_bank[]" id="product_bank_{div_product_bank.num}" type="text" size="50" value="{div_product_bank.product_bank}" maxlength="15"/>
              ({PRODUCT.max15char}) </div>
            <!-- END: div_product_bank-->
            <br/>
            <input type="button" value="{FORM.add_more}" id="btn_add_more_bank_txtbox" onclick="add_more_bank_txtbox();"/>
            <!-- END: parent_div_product_bank-->
          </div>
          <hr style="width:100%" color="#CCCCCC"/>
          <br/>
          <input name="product_use_yahoo" type="checkbox"  {checked_product_use_yahoo}>
          Yahoo!ゆうパック<br>
          <input name="product_send_cash" type="checkbox"  {checked_product_send_cash}>
          {PRODUCT.Send_cash}<br>
          <input name="product_POD" type="checkbox"  {checked_product_POD}>
          {PRODUCT.POD}<br>
          <input name="product_credit_card" type="checkbox"  {checked_product_credit_card} >
          {PRODUCT.Credit_cards}<br>
          {PRODUCT.other_method_payment} <br/>
          <div id="other_payment_div">
            <!-- BEGIN:parent_div_product_other_payment_method -->
            <input type="hidden" id="now_other_method_transfer" value="{now_other_method_transfer}"/>
            <!-- BEGIN:div_product_other_payment_method -->
            <div style="display:{div_product_other_payment_method.display}" id="div_other_payment_method_{div_product_other_payment_method.num}">
              <input  name="product_other_payment_method[]" id="product_other_payment_method_{div_product_other_payment_method.num}" type="text" size="50" maxlength="15" value="{div_product_other_payment_method.product_other_payment_method}" >
              ({PRODUCT.max15char}) </div>
            <!-- END:div_product_other_payment_method -->
            <!-- END:parent_div_product_other_payment_method -->
          </div>
          <input type="button" value="{FORM.add_more}" id="btn_add_more_other_payment_txtbox" onclick="add_more_other_payment_txtbox();"/>
        </td>
      </tr>
      
    <tr>
      <td class="tdLeft">{PRODUCT.Product_Status}<strong>※</strong></td>
      <td><p>
          <label>
          <input type="radio" name="product_product_status" value="1" id="product_product_status_1" {product_product_status_SecondHand} >
          {PRODUCT.SecondHand}</label>
          <br>
          <label>
          <input type="radio" name="product_product_status" value="2" id="product_product_status_2" {product_product_status_New}>
          {PRODUCT.New}</label>
          <br>
          <label>
          <input type="radio" name="product_product_status" value="3" id="product_product_status_3" {product_product_status_Other}>
          {PRODUCT.Other}</label>
          <br>
          {PRODUCT.other_method_payment_comment}<br>
          <input name="product_product_status_comment" type="text" size="50" maxlength="30" value="{product_product_status_comment}" onkeyup="checkmaxchar7(15,'文字数がオーバーしています。')" onkeypress="checkmaxchar7(15, '文字数がオーバーしています。')">
          ({PRODUCT.max15char}) </p></td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Ability}</td>
      <td><p>
          <label>
          <input type="radio"  name="product_ability_to_return_product" value="0" id="product_ability_to_return_product_0" {checked_ability_to_return_product_0}>
          {PRODUCT.cannot}</label>
          <br>
          <label>
          <input type="radio" name="product_ability_to_return_product" value="1" id="product_ability_to_return_product_1" {checked_ability_to_return_product_1}>
          {PRODUCT.can}</label>
          <br>
          {PRODUCT.Ability_comment} <br/>
          <input name="product_ability_to_return_product_comment" type="text" value="{product_ability_to_return_product_comment}" size="50" maxlength="60" onkeyup="checkmaxchar6(30,'文字数がオーバーしています。')" onkeypress="checkmaxchar7(30, '文字数がオーバーしています。')">
          ({PRODUCT.max30char}) </p></td>
    </tr>
    <tr>
      <td class="tdLeft_2">{PRODUCT.Limited_assessment}</td>
      <td>
      	<select name="product_limited_assesment_of_the_bidder" id="product_limited_assesment_of_the_bidder">
      		<option value="-5">-5</option>
      		<option value="-1" {product_limited_assesment_of_the_bidder_selected_1} >-1</option>
      		<option value="0" {product_limited_assesment_of_the_bidder_selected_2}>0</option>
      		<option value="1" {product_limited_assesment_of_the_bidder_selected_3}>1</option>
      		<option value="2" {product_limited_assesment_of_the_bidder_selected_4}>2</option>
      		<option value="3" {product_limited_assesment_of_the_bidder_selected_5}>3</option>
      		<option value="4" {product_limited_assesment_of_the_bidder_selected_6}>4</option>
      		<option value="5" {product_limited_assesment_of_the_bidder_selected_7}>5</option>
      		
		</select>
	  	
        {PRODUCT.Limited_assessment_1}</td>
    </tr>
    <tr>
      <td class="tdLeft_2">{PRODUCT.Automatically_extended}</td>
      <td><label>
        <input type="checkbox" name="product_auto_extend" id="product_auto_extend" value="0" {checked_product_auto_extend}/>
        </label>
        {PRODUCT.Automatically_extended_c} </td>
    </tr>
    <tr>
      <td class="tdLeft_2">{PRODUCT.End_soon}</td>
      <td><div class="">
          <label>
          <input type="checkbox" name="product_end_soon" id="product_end_soon" value="0" {cheked_product_end_soon}/>
          </label>
          {PRODUCT.End_soon_note}</div></td>
    </tr>
    <!-- <tr>
      <td class="tdLeft_2">{PRODUCT.Price_Fasteners}</td>
      <td>
        <input name="product_price_fastener" id="product_price_fastener" type="text" size="15" maxlength="13" value="{product_price_fastener}" />
        </td>
    </tr> -->
    <tr>
      <td class="tdLeft">{PRODUCT.Price_Fasteners_c}</td>
      <td><input name="product_have_to_negotiate_discount" id="product_have_to_negotiate_discount" type="checkbox" value="1" {checked_product_have_to_negotiate_discount} />
        {PRODUCT.negotiate_discount} </td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Automatically_open}</td>
      <td><select name="product_auto_open_aution" id="product_auto_open_aution" style="width:50px;">
          <script language="javascript" type="text/javascript" >
    autoFillCombobox("product_auto_open_aution",product_auto_open_aution_text,product_auto_open_aution,'{product_auto_open_aution}');
	</script>
        </select>
        {PRODUCT.Automatically_open_c}</td>
    </tr>
    <!-- <tr>
      <td class="tdLeft">{PRODUCT.price_wins_minimum}<br />
        {PRODUCT.with_charge}</td>
        
      <td><label>
        <input type="text" name="product_price_wins_minimum" id="product_price_wins_minimum"  value="{product_price_wins_minimum}" onKeyPress="javascript: return numbersonly(event,this,20)" />
        {PRODUCT.YEN}&nbsp;&nbsp;{PRODUCT.price_wins_minimum_c1}</label>
        <br/>
        {PRODUCT.price_wins_minimum_c2} 121212 </td>
    </tr> -->
    
    
    <tr style="border-bottom: #CCCCCC solid 1px;">
      <td colspan="2" style="background:#F1F1F1; height:30px; "><input name="save_btt" type="button" value="{FORM.save}" onClick="javascript: {toobar_save}" />
        <a class="toolbar" href="{toobar_cancel}" title="cancel">
        <input name="cancel_btt" type="button" value="{FORM.cancel}" onClick='javascript: window.location.href = "{toobar_cancel}";' />
        </a></td>
    <tr>
      <td class="tdLeft"  colspan="2" style="background:#F4F4F4">{PRODUCT.PR_option}</td>
    </tr>
    <tr>
      <td class="tdLeft_3" >{PRODUCT.Auction_Highlights}
        {PRODUCT.with_charge}</td>
      <td><div id="result_box7" dir="ltr">1 {PRODUCT.day}
          <label>
          <input type="text" name="product_auction_notable" id="product_auction_notable"  value="{product_auction_notable}"/>
          </label>
          {PRODUCT.YEN} 10 {PRODUCT.YEN} / 1 {PRODUCT.day} ({PRODUCT.including_tax} = 10:50) ~ <br />
          {PRODUCT.Auction_Highlights_c}</div>
        <br/></td>
    </tr>
    <tr>
      <td class="tdLeft_3">{PRODUCT.product_title_bold_line}{PRODUCT.with_fees}</td>
      <td><div id="result_box6" dir="ltr">
          <label>
          <input type="checkbox" name="product_title_bold_line" id="product_title_bold_line" {checked_product_title_bold_line} />
          </label>
          <strong>{PRODUCT.product_title_bold_line_c}</strong><br/>
          {PRODUCT.product_title_bold_line_c1} </div></td>
    </tr>
    <tr>
      <td class="tdLeft_3">{PRODUCT.product_bakground_color}{PRODUCT.with_fees}</td>
      <td><div id="result_box5" dir="ltr">
          <label>
          <input type="checkbox" name="product_bakground_color" id="product_bakground_color"  {checked_product_bakground_color} />
          </label>
          {PRODUCT.product_bakground_color_c1} <br/>
          {PRODUCT.product_bakground_color_c}</div></td>
    </tr>
    <tr>
      <td class="tdLeft_3">{PRODUCT.Store_hot_auction}{PRODUCT.with_fees}</td>
      <td><div id="result_box4" dir="ltr">
          <label>
          <input type="checkbox" name="product_store_hot_auction" id="product_store_hot_auction"  {checked_product_store_hot_auction} />
          </label>
          {PRODUCT.Store_hot_auction_c}<br/>
          {PRODUCT.Store_hot_auction_c1} </div></td>
    </tr>
    <tr>
      <td class="tdLeft_3">{PRODUCT.product_icon_highlight}{PRODUCT.with_fees}</td>
      <td><label>
        <select name="product_icon_highlight" id="product_icon_highlight" style="width:100px;">
          <script language="javascript" type="text/javascript" >
				autoFillCombobox("product_icon_highlight",product_icon_highlight_text,product_icon_highlight,'{product_icon_highlight}');
			</script>
        </select>
        </label>
        {PRODUCT.product_icon_highlight_c1}<br/>
        {PRODUCT.product_icon_highlight_c}</td>
    </tr>
    <tr>
      <td class="tdLeft_3">{PRODUCT.product_icon_gif}{PRODUCT.with_fees}</td>
      <td><div id="result_box3" dir="ltr">
          <label>
          <input type="checkbox" name="product_icon_gift" id="product_icon_gift" {checked_product_icon_gift}/>
          </label>
          {PRODUCT.product_icon_gif_c}</div>
        {PRODUCT.product_icon_gif_n}</td>
    </tr>
    <tr>
      <td class="tdLeft_3">{PRODUCT.product_yahoo_point}<br />
        {PRODUCT.product_yahoo_point_c}</td>
      <td><label>
        落札価格に対して </label>
        <input type="text" value="{product_yahoo_point_fees}" name="product_yahoo_point_fees" id="product_yahoo_point_fees" onKeyPress="javascript: return numbersonly(event,this,7);" />
        <strong>％</strong> でポイント設定します
        <div>（落札価格に対して1、1.5、2、2.5、3、3.5、4、4.5、5～50％で設定）</div></td>
    </tr>
    <tr>
      <td class="tdLeft_3">{PRODUCT.Affiliate}<br />
{PRODUCT.Affiliate_c}</td>
      <td><div id="result_box" dir="ltr">{PRODUCT.Remuneration}
          <label>
            <input type="text" name="product_remuneration_to_partner" id="product_remuneration_to_partner" value="{product_remuneration_to_partner}" onkeypress="javascript: return numbersonly(event,this,20)" />
            <strong>％</strong> </label>
          {PRODUCT.remuneration_to_partner}
  <div id="result_box2" dir="ltr"></div>
      </div></td>
    </tr>
    <tr>
      <td class="tdLeft_3"><span class="tdLeft_2">{PRODUCT.cost_and_trans}</span></td>
      <td><div class="LABEL_DIV" > {PRODUCT.delivery_comment}</div>
      {PRODUCT.size_packing}
          <select name="product_size_after_packet" id="product_size_after_packet">
            <script language	="javascript" type="text/javascript" >
				autoFillCombobox("product_size_after_packet",product_size_after_packet_text,product_size_after_packet,'{product_size_after_packet}');
			</script>
          </select>
          <br />
          <span class="LABEL_DIV" style="height:47px;">{PRODUCT.method_trans_comment}</span>
          <div style="text-align:left"> 
          {PRODUCT.Weight}
          <label>
            <select name="product_weight_after_packet" id="product_weight_after_packet">
              <script language="javascript" type="text/javascript" >
				autoFillCombobox("product_weight_after_packet",product_weight_after_packet_text,product_weight_after_packet,'{product_weight_after_packet}');
			</script>
            </select>
          </label>
      </div></td>
    </tr>
    <tr>
      <td class="tdLeft_3">Add Transfer</td>
      <td><input name="one_more_other" id="one_more_other_button" type="button" value="{FORM.add_more}" style="padding:5px; margin-bottom:7px; " onClick="javascript: addOtherMethodTrans(this);"/><table width="100%" border="0" cellspacing="2" cellpadding="4" id="other_method_trans_tbl" class="other_method">
          <tbody id="other_method_body">
            <!-- BEGIN:OMoT -->
            <!-- BEGIN:OMoT_ROW -->
            <tr id="tr_other_{OMoT_ROW.i}">
              <td><input name="other_title_{OMoT_ROW.i}" id="other_title_textbox_{OMoT_ROW.i}" size="40" type="text" value="{OMoT_ROW.other_title_of_method}" maxlength="15" />
                <input name="other_link_to_price_list_{OMoT_ROW.i}" id="other_link_to_price_list_{OMoT_ROW.i}" type="hidden" value="{OMoT_ROW.other_link_to_price_list}" />
                <input name="other_uniform_price_{OMoT_ROW.i}" id="other_uniform_price_{OMoT_ROW.i}" type="hidden" value="{OMoT_ROW.other_uniform_price}" />
              </td>
              <td id="td2_{OMoT_ROW.i}"><!--<div class="" id="normal_intialize" style="display:{OMoT.normal_intialize}"> <a href="#" target="_self" onClick="javascript: check_length('other_title_textbox_{OMoT.i}','other_link_to_price_list_{OMoT.i}');" >Price Table Page Links</a>|<a href="#" onClick="check_length('other_title_textbox_{OMoT.i}','other_uniform_price_{OMoT.i}');"  >Set uniform national shipping</a> </div>-->
                <script language="javascript" type="text/javascript">
            {InitializeOMoT}
			  {OMoT_ROW.InitializeOMoT}
			</script>
              </td>
              <td onClick="remove_this_row('other_method_trans_tbl','other_method_body','tr_other_{OMoT_ROW.i}')"> {FORM.remove}</td>
            </tr>
            <!-- END:OMoT_ROW -->
            <!-- END:OMoT -->
          </tbody>
        </table>
        </td>
    </tr>
    <tr>
      <td class="tdLeft_3">海外発送</td>
      <td><label>
        <input type="checkbox" name="product_over_sea" id="product_over_sea" />
      </label></td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="" cellpadding="0" class="maintable">
    <tr>
      <td colspan="2" style="background:#F1F1F1; height:30px; "><input name="save_btt" type="button" value="{FORM.save}" onClick="javascript: {toobar_save}" />
        <a class="toolbar" href="{toobar_cancel}" title="cancel">
        <input name="cancel_btt" type="button" value="{FORM.cancel}" onClick='javascript: window.location.href = "{toobar_cancel}";' />
        </a></td>
    </tr>
  </table>
</form>
<form action="?sMod=upload_image_product" method="post" enctype="multipart/form-data"  name="redirec_to_upload_image" id="redirec_to_upload_image" >
  <input name="pictures_product_id" id="pictures_product_id" type="hidden" value="{product_id}" />
</form>
<div id="popup_set_link" class="div_hidden">
  <div style="font-weight:bold;">料金表ページリンク設定</div>
  <div>発送元地域からの料金表ページURLを入力してください <a href="" target="_blank">（ リンクをテスト ）</a></div>
  <form action="" method="get" name="cache_data_to_OMT" id="cache_data_to_OMT">
    <p>
      <input type="hidden" name="swichText" id="swichText" value=""  />
      URL
      <input name="cache_other_link" id="cache_other_link_id" type="text" value="" size="100" />
    <div style="color:#FF0000; display:none" id="url_invalid">有効なURLではありません。</div>
    <br/>
    <input name="ok_cache" type="button" value="{FORM.save}" onClick="rebindData('cache_data_to_OMT','popup_set_link');" />
    <input name="cancel_cache_btt" type="button" value="{FORM.cancel}" onClick="javascript: popup.close('popup_set_link');document.getElementById('one_more_other_button').focus();"/>
    </p>
    <p style="background-color:#FECBCB; padding:5px; height:45px; vertical-align:baseline; padding-top:15px;">
      <input name="search_price_page" type="text" size="40" id="search_price_page_e" />
      <a href="http://google.com.vn/?key" onClick="checkUrl(this,'search_price_page_e');" target="_blank">
      <input name="OK_search_btt" type="button" value="{FORM.search}" />
      </a>
       <div style="color:#FF0000; display:none" id="url_invalid_2">有効なURLではありません。</div>
    </p>
  </form>
</div>
<div id="set_uniform_national" class="div_hidden">
  <div style="font-weight:bold;">全国一律送料設定</div>
  <div>発送元地域からの料金表ページURLを入力してください <a href="" target="_blank">（ リンクをテスト ）</a></div>
  <form action="" method="get" name="cache_data_to_OMT_2" id="cache_data_to_OMT_2">
    <p>
      <input type="hidden" name="swichText" id="swichText_2" value=""  />
    <div style="background-color:#FFFFE3; border:#DDDDDD solid 1px; height:40px; padding:10px; padding-top:15px;" > <span>送料全国一律（税込） : </span><span>
      <input name="cache_other_uniform_price" id="cache_other_uniform_price" type="text" value="" size="70" onKeyPress="javascript: return numbersonly(event,this,10)" />
      円</span>
      <div style="color:#FF0000; display:none" id="number_invalid">半角数字以外は入力できません</div>
    </div>
    </p>
    <input name="ok_cache" type="button" value="OK" onClick="rebindData_2('cache_data_to_OMT_2','set_uniform_national');" />
    <input name="cancel_cache_btt" type="button" value="{FORM.cancel}" onClick="javascript: popup.close('set_uniform_national');"/>
  </form>
</div>
<script language="javascript" type="text/javascript">
try{
	var getTableId = document.getElementById('tableTab');
	var getCell = getTableId.getElementsByTagName('TH');
}
catch(e){
}

function changeTab(tab_show,tab_non,thiscell,value) {
	  for(i=0;i<getCell.length;i++) {
	   getCell[i].style.backgroundColor = "#EFF2F8";
	   getCell[i].style.color = "#1546A7";
	   thiscell.style.backgroundColor = "#C3C2C2" ;
	   thiscell.style.color = "#FFFFFF" ;
	   document.getElementById(tab_show).style.display = "block";
	   document.getElementById(tab_non).style.display = "none";
	   set_normal_Or_htmlTagDes(value);
	
			}
	}
function set_normal_Or_htmlTagDes(value){
	document.getElementById("product_description_normal").value = value;
}
function setTabInitialize(){
 for(i=0;i<getCell.length;i++) {
	   getCell[i].style.backgroundColor = "#EFF2F8";
	   getCell[i].style.color = "#1546A7";
	   getCell[0].style.backgroundColor = "#C3C2C2" ;
	   getCell[0].style.color = "#FFFFFF" ;
	   }
	  document.getElementById("tabber_Enter_HTML_tag").style.display = "none";
	  document.getElementById("tabber_Enter_normal").style.display = "block";
	 }
   //setTabInitialize();
   set_normal_Or_htmlTagDes(1);
function setTabInitialize_Edit(tab_show,tab_non,cell,value) {
	  for(i=0;i<getCell.length;i++) {
	   getCell[i].style.backgroundColor = "#EFF2F8";
	   getCell[i].style.color = "#1546A7";
	   getCell[cell].style.backgroundColor = "#C3C2C2" ;

	   getCell[cell].style.color = "#FFFFFF" ;
	   document.getElementById(tab_show).style.display = "block";
	   document.getElementById(tab_non).style.display = "none";
	   set_normal_Or_htmlTagDes(value);
	
			}
	}
/*
*Innitialize when edit
*Created by: Tienhv
*Date; 28th April
*/
//{setTabInitialize}

{enableOrDisableDivTag}
{product_set_limit_on_prices_s}
{product_time_auction_s}

{product_auto_open_aution_s}
{product_size_after_packet_s}
{product_weight_after_packet_s}
{product_icon_highlight_s}
{enableOrDisableDivTag_setLink}
{setInitializeAddNew}
function redirec_uploadImage(){
	var product_id = document.getElementById('product_id').value;
	var frm = document.getElementById('redirec_to_upload_image');
	frm.pictures_product_id.value = product_id;
	frm.submit();
	}
</script>
<p>
  </p>
  <script type="text/javascript">
{change_tab}
  </script>
<!-- BEGIN : loading_default-->
<!-- END : loading_default-->
<script type="text/javascript">
window.onload=function(){
	change_template('{default_temp}');
	var frm=document.frmNewProduct;
	if(frm.product_qty.value==""){
		frm.product_qty.value=1;
	}
	//  product_province_id
	<!-- BEGIN: default_province_code-->
		len=frm.product_province_id.options.length;
		for(var i=0;i<len;i++){
			if(frm.product_province_id.options[i].value=="14"){
				frm.product_province_id.options[i].selected="selected";
				break;
			}
		}
	<!-- END: default_province_code-->
	
	// 決済方法　商品代引
	
	//
	//     市区町村
	if(frm.product_shipping_area.value==""){
		frm.product_shipping_area.value="横浜市";
	}
	if(frm.product_prices_start.value==""){
		frm.product_prices_start.value="1";
	}
}
</script>
<script language="javascript" type="text/javascript">
var popup = new Popup('popup_set_link set_uniform_national');
</script>

